<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Bookmark file parser</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
<link rel="start" href="index.html" title="GLib Reference Manual">
<link rel="up" href="glib-utilities.html" title="GLib Utilities">
<link rel="prev" href="glib-Key-value-file-parser.html" title="Key-value file parser">
<link rel="next" href="glib-Testing.html" title="Testing">
<meta name="generator" content="GTK-Doc V1.9 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="chapter" href="glib.html" title="GLib Overview">
<link rel="chapter" href="glib-fundamentals.html" title="GLib Fundamentals">
<link rel="chapter" href="glib-core.html" title="GLib Core Application Support">
<link rel="chapter" href="glib-utilities.html" title="GLib Utilities">
<link rel="chapter" href="glib-data-types.html" title="GLib Data Types">
<link rel="chapter" href="tools.html" title="GLib Tools">
<link rel="index" href="ix01.html" title="Index">
<link rel="index" href="ix02.html" title="Index of deprecated symbols">
<link rel="index" href="ix03.html" title="Index of new symbols in 2.2">
<link rel="index" href="ix04.html" title="Index of new symbols in 2.4">
<link rel="index" href="ix05.html" title="Index of new symbols in 2.6">
<link rel="index" href="ix06.html" title="Index of new symbols in 2.8">
<link rel="index" href="ix07.html" title="Index of new symbols in 2.10">
<link rel="index" href="ix08.html" title="Index of new symbols in 2.12">
<link rel="index" href="ix09.html" title="Index of new symbols in 2.14">
<link rel="index" href="ix10.html" title="Index of new symbols in 2.16">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="glib-Key-value-file-parser.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="glib-utilities.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GLib Reference Manual</th>
<td><a accesskey="n" href="glib-Testing.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id3253304" class="shortcut">Top</a>
                  &#160;|&#160;
                  <a href="#id3254977" class="shortcut">Description</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="glib-Bookmark-file-parser"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id3253304"></a><span class="refentrytitle">Bookmark file parser</span>
</h2>
<p>Bookmark file parser &#8212; parses files containing bookmarks</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<pre class="synopsis">

#include &lt;glib.h&gt;


                    <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a>;
#define             <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR:CAPS">G_BOOKMARK_FILE_ERROR</a>
enum                <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFileError">GBookmarkFileError</a>;
<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a>*      <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-new">g_bookmark_file_new</a>                 (void);
void                <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-free">g_bookmark_file_free</a>                (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark);
<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-load-from-file">g_bookmark_file_load_from_file</a>      (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *filename,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);
<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-load-from-data">g_bookmark_file_load_from_data</a>      (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *data,
                                                         <a class="link" href="glib-Basic-Types.html#gsize">gsize</a> length,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);
<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-load-from-data-dirs">g_bookmark_file_load_from_data_dirs</a> (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *file,
                                                         <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> **full_path,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);
<a class="link" href="glib-Basic-Types.html#gchar">gchar</a>*              <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-to-data">g_bookmark_file_to_data</a>             (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         <a class="link" href="glib-Basic-Types.html#gsize">gsize</a> *length,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);
<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-to-file">g_bookmark_file_to_file</a>             (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *filename,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);
<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-has-item">g_bookmark_file_has_item</a>            (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri);
<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-has-group">g_bookmark_file_has_group</a>           (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *group,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);
<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-has-application">g_bookmark_file_has_application</a>     (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *name,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);
<a class="link" href="glib-Basic-Types.html#gint">gint</a>                <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-size">g_bookmark_file_get_size</a>            (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark);
<a class="link" href="glib-Basic-Types.html#gchar">gchar</a>**             <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-uris">g_bookmark_file_get_uris</a>            (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         <a class="link" href="glib-Basic-Types.html#gsize">gsize</a> *length);

<a class="link" href="glib-Basic-Types.html#gchar">gchar</a>*              <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-title">g_bookmark_file_get_title</a>           (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);
<a class="link" href="glib-Basic-Types.html#gchar">gchar</a>*              <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-description">g_bookmark_file_get_description</a>     (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);
<a class="link" href="glib-Basic-Types.html#gchar">gchar</a>*              <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-mime-type">g_bookmark_file_get_mime_type</a>       (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);
<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-is-private">g_bookmark_file_get_is_private</a>      (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);
<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-icon">g_bookmark_file_get_icon</a>            (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> **href,
                                                         <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> **mime_type,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);
time_t              <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-added">g_bookmark_file_get_added</a>           (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);
time_t              <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-modified">g_bookmark_file_get_modified</a>        (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);
time_t              <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-visited">g_bookmark_file_get_visited</a>         (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);
<a class="link" href="glib-Basic-Types.html#gchar">gchar</a>**             <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-groups">g_bookmark_file_get_groups</a>          (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         <a class="link" href="glib-Basic-Types.html#gsize">gsize</a> *length,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);
<a class="link" href="glib-Basic-Types.html#gchar">gchar</a>**             <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-applications">g_bookmark_file_get_applications</a>    (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         <a class="link" href="glib-Basic-Types.html#gsize">gsize</a> *length,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);
<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-app-info">g_bookmark_file_get_app_info</a>        (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *name,
                                                         <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> **exec,
                                                         <a class="link" href="glib-Basic-Types.html#guint">guint</a> *count,
                                                         time_t *stamp,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);

void                <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-title">g_bookmark_file_set_title</a>           (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *title);
void                <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-description">g_bookmark_file_set_description</a>     (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *description);
void                <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-mime-type">g_bookmark_file_set_mime_type</a>       (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *mime_type);
void                <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-is-private">g_bookmark_file_set_is_private</a>      (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         <a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a> is_private);
void                <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-icon">g_bookmark_file_set_icon</a>            (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *href,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *mime_type);
void                <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-added">g_bookmark_file_set_added</a>           (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         time_t added);
void                <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-groups">g_bookmark_file_set_groups</a>          (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> **groups,
                                                         <a class="link" href="glib-Basic-Types.html#gsize">gsize</a> length);
void                <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-modified">g_bookmark_file_set_modified</a>        (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         time_t modified);
void                <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-visited">g_bookmark_file_set_visited</a>         (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         time_t visited);
<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-app-info">g_bookmark_file_set_app_info</a>        (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *name,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *exec,
                                                         <a class="link" href="glib-Basic-Types.html#gint">gint</a> count,
                                                         time_t stamp,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);
void                <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-add-group">g_bookmark_file_add_group</a>           (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *group);
void                <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-add-application">g_bookmark_file_add_application</a>     (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *name,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *exec);
<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-remove-group">g_bookmark_file_remove_group</a>        (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *group,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);
<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-remove-application">g_bookmark_file_remove_application</a>  (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *name,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);
<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-remove-item">g_bookmark_file_remove_item</a>         (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);
<a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-move-item">g_bookmark_file_move_item</a>           (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *old_uri,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *new_uri,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);

</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3254977"></a><h2>Description</h2>
<p>
<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a> lets you parse, edit or create files containing bookmarks
to URI, along with some meta-data about the resource pointed by the URI like
its MIME type, the application that is registering the bookmark and the
icon that should be used to represent the bookmark. The data is stored using
the
<a class="ulink" href="http://www.gnome.org/~ebassi/bookmark-spec" target="_top">Desktop Bookmark
Specification</a>.
</p>
<p>
The syntax of the bookmark files is described in detail inside the Desktop
Bookmark Specification, here is a quick summary: bookmark files use a sub-class
of the
<a class="ulink" href="" target="_top">XML Bookmark Exchange Language</a> specification, consisting
of valid UTF-8 encoded XML, under the <code class="literal">xbel</code> root element;
each bookmark is stored inside a <code class="literal">bookmark</code> element, using
its URI: no relative paths can be used inside a bookmark file. The bookmark
may have a user defined title and description, to be used instead of the URI.
Under the <code class="literal">metadata</code> element, with its <code class="literal">owner</code>
attribute set to <code class="literal">http://freedesktop.org</code>, is stored the
meta-data about a resource pointed by its URI. The meta-data consists of
the resource's MIME type; the applications that have registered a bookmark;
the groups to which a bookmark belongs to; a visibility flag, used to set
the bookmark as "private" to the applications and groups that has it
registered; the URI and MIME type of an icon, to be used when displaying the
bookmark inside a GUI.
</p>
<div class="informalexample"><pre class="programlisting">

&lt;?xml version="1.0"?&gt;
&lt;!DOCTYPE xbel PUBLIC 
  "+//IDN python.org//DTD XML Bookmark Exchange Language 1.0//EN//XML"
  "http://www.python.org/topics/xml/dtds/xbel-1.0.dtd"&gt;
&lt;xbel version="1.0"
      xmlns:mime="http://www.freedesktop.org/standards/shared-mime-info"
      xmlns:bookmark="http://www.freedesktop.org/standards/desktop-bookmarks"&gt;
  &lt;bookmark href="file:///home/ebassi/bookmark-spec/bookmark-spec.xml"&gt;
    &lt;title&gt;Desktop Bookmarks Spec&lt;/title&gt;
    &lt;info&gt;
      &lt;metadata owner="http://freedesktop.org"&gt;
        &lt;mime:mime-type&gt;text/xml&lt;/mime:mime-type&gt;
	&lt;bookmark:applications&gt;
          &lt;bookmark:application name="GEdit" count="2" exec="gedit %u" timestamp="1115726763"/&gt;
          &lt;bookmark:application name="GViM" count="7" exec="gvim %f" timestamp="1115726812"/&gt;
	&lt;/bookmark:applications&gt;
	&lt;bookmark:groups&gt;
	  &lt;bookmark:group&gt;Editors&lt;/bookmark:group&gt;
	&lt;/bookmark:groups&gt;
      &lt;/metadata&gt;
    &lt;/info&gt;
  &lt;/bookmark&gt;
&lt;/xbel&gt;

</pre></div>
<p>
A bookmark file might contain more than one bookmark; each bookmark is accessed
through its URI.
</p>
<p>
The important caveat of bookmark files is that when you add a new bookmark you
must also add the application that is registering it, using
<a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-add-application"><code class="function">g_bookmark_file_add_application()</code></a> or <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-app-info"><code class="function">g_bookmark_file_set_app_info()</code></a>. If a
bookmark has no applications then it won't be dumped when creating the
on disk representation, using <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-to-data"><code class="function">g_bookmark_file_to_data()</code></a> or
<a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-to-file"><code class="function">g_bookmark_file_to_file()</code></a>.
</p>
<p>
The <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a> parser was added in GLib 2.12.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id3253261"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id3253272"></a><h3>
<a name="GBookmarkFile"></a>GBookmarkFile</h3>
<a class="indexterm" name="id3253285"></a><pre class="programlisting">typedef struct _GBookmarkFile GBookmarkFile;</pre>
<p>
The <span class="structname">GBookmarkFile</span> struct contains only private data
and should not be used directly.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3255354"></a><h3>
<a name="G-BOOKMARK-FILE-ERROR:CAPS"></a>G_BOOKMARK_FILE_ERROR</h3>
<a class="indexterm" name="id3255367"></a><pre class="programlisting">#define G_BOOKMARK_FILE_ERROR	(g_bookmark_file_error_quark ())
</pre>
<p>
Error domain for bookmark file parsing. Errors in this domain will be
from the <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFileError"><span class="type">GBookmarkFileError</span></a> enumeration. See <a class="link" href="glib-Error-Reporting.html#GError"><span class="type">GError</span></a> for informations
on error domains.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3255402"></a><h3>
<a name="GBookmarkFileError"></a>enum GBookmarkFileError</h3>
<a class="indexterm" name="id3255414"></a><pre class="programlisting">typedef enum
{
  G_BOOKMARK_FILE_ERROR_INVALID_URI,
  G_BOOKMARK_FILE_ERROR_INVALID_VALUE,
  G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED,
  G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND,
  G_BOOKMARK_FILE_ERROR_READ,
  G_BOOKMARK_FILE_ERROR_UNKNOWN_ENCODING,
  G_BOOKMARK_FILE_ERROR_WRITE,
  G_BOOKMARK_FILE_ERROR_FILE_NOT_FOUND
} GBookmarkFileError;
</pre>
<p>
Error codes returned by bookmark file parsing.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a name="G-BOOKMARK-FILE-ERROR-INVALID-URI:CAPS"></a><code class="literal">G_BOOKMARK_FILE_ERROR_INVALID_URI</code></span></p></td>
<td>URI was ill-formed
</td>
</tr>
<tr>
<td><p><span class="term"><a name="G-BOOKMARK-FILE-ERROR-INVALID-VALUE:CAPS"></a><code class="literal">G_BOOKMARK_FILE_ERROR_INVALID_VALUE</code></span></p></td>
<td>a requested field was not found
</td>
</tr>
<tr>
<td><p><span class="term"><a name="G-BOOKMARK-FILE-ERROR-APP-NOT-REGISTERED:CAPS"></a><code class="literal">G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED</code></span></p></td>
<td>a requested application did not
register a bookmark
</td>
</tr>
<tr>
<td><p><span class="term"><a name="G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"></a><code class="literal">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</code></span></p></td>
<td>a requested URI was not found
</td>
</tr>
<tr>
<td><p><span class="term"><a name="G-BOOKMARK-FILE-ERROR-READ:CAPS"></a><code class="literal">G_BOOKMARK_FILE_ERROR_READ</code></span></p></td>
<td>document was ill formed
</td>
</tr>
<tr>
<td><p><span class="term"><a name="G-BOOKMARK-FILE-ERROR-UNKNOWN-ENCODING:CAPS"></a><code class="literal">G_BOOKMARK_FILE_ERROR_UNKNOWN_ENCODING</code></span></p></td>
<td>the text being parsed was in an
unknown encoding
</td>
</tr>
<tr>
<td><p><span class="term"><a name="G-BOOKMARK-FILE-ERROR-WRITE:CAPS"></a><code class="literal">G_BOOKMARK_FILE_ERROR_WRITE</code></span></p></td>
<td>an error occurred while writing
</td>
</tr>
<tr>
<td><p><span class="term"><a name="G-BOOKMARK-FILE-ERROR-FILE-NOT-FOUND:CAPS"></a><code class="literal">G_BOOKMARK_FILE_ERROR_FILE_NOT_FOUND</code></span></p></td>
<td>requested file was not found

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3255628"></a><h3>
<a name="g-bookmark-file-new"></a>g_bookmark_file_new ()</h3>
<a class="indexterm" name="id3255643"></a><pre class="programlisting"><a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a>*      g_bookmark_file_new                 (void);</pre>
<p>
Creates a new empty <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a> object.
</p>
<p>
Use <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-load-from-file"><code class="function">g_bookmark_file_load_from_file()</code></a>, <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-load-from-data"><code class="function">g_bookmark_file_load_from_data()</code></a>
or <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-load-from-data-dirs"><code class="function">g_bookmark_file_load_from_data_dirs()</code></a> to read an existing bookmark
file.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> an empty <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>

</td>
</tr></tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3255745"></a><h3>
<a name="g-bookmark-file-free"></a>g_bookmark_file_free ()</h3>
<a class="indexterm" name="id3255760"></a><pre class="programlisting">void                g_bookmark_file_free                (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark);</pre>
<p>
Frees a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr></tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3255834"></a><h3>
<a name="g-bookmark-file-load-from-file"></a>g_bookmark_file_load_from_file ()</h3>
<a class="indexterm" name="id3255850"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            g_bookmark_file_load_from_file      (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *filename,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);</pre>
<p>
Loads a desktop bookmark file into an empty <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a> structure.
If the file could not be loaded then <em class="parameter"><code>error</code></em> is set to either a <a class="link" href="glib-File-Utilities.html#GFileError"><span class="type">GFileError</span></a>
or <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFileError"><span class="type">GBookmarkFileError</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> an empty <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a> struct
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em>&#160;:</span></p></td>
<td> the path of a filename to load, in the GLib file name encoding
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td>
<td> return location for a <a class="link" href="glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if a desktop bookmark file could be loaded

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3256031"></a><h3>
<a name="g-bookmark-file-load-from-data"></a>g_bookmark_file_load_from_data ()</h3>
<a class="indexterm" name="id3256047"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            g_bookmark_file_load_from_data      (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *data,
                                                         <a class="link" href="glib-Basic-Types.html#gsize">gsize</a> length,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);</pre>
<p>
Loads a bookmark file from memory into an empty <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
structure.  If the object cannot be created then <em class="parameter"><code>error</code></em> is set to a
<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFileError"><span class="type">GBookmarkFileError</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> an empty <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a> struct
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td>
<td> desktop bookmarks loaded in memory
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>length</code></em>&#160;:</span></p></td>
<td> the length of <em class="parameter"><code>data</code></em> in bytes
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td>
<td> return location for a <a class="link" href="glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if a desktop bookmark could be loaded.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3256248"></a><h3>
<a name="g-bookmark-file-load-from-data-dirs"></a>g_bookmark_file_load_from_data_dirs ()</h3>
<a class="indexterm" name="id3256264"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            g_bookmark_file_load_from_data_dirs (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *file,
                                                         <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> **full_path,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);</pre>
<p>
This function looks for a desktop bookmark file named <em class="parameter"><code>file</code></em> in the
paths returned from <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-get-user-data-dir"><code class="function">g_get_user_data_dir()</code></a> and <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-get-system-data-dirs"><code class="function">g_get_system_data_dirs()</code></a>, 
loads the file into <em class="parameter"><code>bookmark</code></em> and returns the file's full path in 
<em class="parameter"><code>full_path</code></em>.  If the file could not be loaded then an <code class="literal">error</code> is
set to either a <a class="link" href="glib-File-Utilities.html#GFileError"><span class="type">GFileError</span></a> or <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFileError"><span class="type">GBookmarkFileError</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>file</code></em>&#160;:</span></p></td>
<td> a relative path to a filename to open and parse
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>full_path</code></em>&#160;:</span></p></td>
<td> return location for a string containing the full path
  of the file, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td>
<td> return location for a <a class="link" href="glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if a key file could be loaded, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> othewise

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3256524"></a><h3>
<a name="g-bookmark-file-to-data"></a>g_bookmark_file_to_data ()</h3>
<a class="indexterm" name="id3256539"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar">gchar</a>*              g_bookmark_file_to_data             (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         <a class="link" href="glib-Basic-Types.html#gsize">gsize</a> *length,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);</pre>
<p>
This function outputs <em class="parameter"><code>bookmark</code></em> as a string.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>length</code></em>&#160;:</span></p></td>
<td> return location for the length of the returned string, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td>
<td> return location for a <a class="link" href="glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> a newly allocated string holding
  the contents of the <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3256703"></a><h3>
<a name="g-bookmark-file-to-file"></a>g_bookmark_file_to_file ()</h3>
<a class="indexterm" name="id3256718"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            g_bookmark_file_to_file             (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *filename,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);</pre>
<p>
This function outputs <em class="parameter"><code>bookmark</code></em> into a file.  The write process is
guaranteed to be atomic by using <a class="link" href="glib-File-Utilities.html#g-file-set-contents"><code class="function">g_file_set_contents()</code></a> internally.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>filename</code></em>&#160;:</span></p></td>
<td> path of the output file
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td>
<td> return location for a <a class="link" href="glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the file was successfully written.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3256885"></a><h3>
<a name="g-bookmark-file-has-item"></a>g_bookmark_file_has_item ()</h3>
<a class="indexterm" name="id3256900"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            g_bookmark_file_has_item            (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri);</pre>
<p>
Looks whether the desktop bookmark has an item with its URI set to <em class="parameter"><code>uri</code></em>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em>&#160;:</span></p></td>
<td> a valid URI
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>uri</code></em> is inside <em class="parameter"><code>bookmark</code></em>, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3257035"></a><h3>
<a name="g-bookmark-file-has-group"></a>g_bookmark_file_has_group ()</h3>
<a class="indexterm" name="id3257052"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            g_bookmark_file_has_group           (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *group,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);</pre>
<p>
Checks whether <em class="parameter"><code>group</code></em> appears in the list of groups to which
the bookmark for <em class="parameter"><code>uri</code></em> belongs to.
</p>
<p>
In the event the URI cannot be found, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is returned and
<em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em>&#160;:</span></p></td>
<td> a valid URI
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>group</code></em>&#160;:</span></p></td>
<td> the group name to be searched
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td>
<td> return location for a <a class="link" href="glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>group</code></em> was found.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3257270"></a><h3>
<a name="g-bookmark-file-has-application"></a>g_bookmark_file_has_application ()</h3>
<a class="indexterm" name="id3257286"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            g_bookmark_file_has_application     (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *name,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);</pre>
<p>
Checks whether the bookmark for <em class="parameter"><code>uri</code></em> inside <em class="parameter"><code>bookmark</code></em> has been
registered by application <em class="parameter"><code>name</code></em>.
</p>
<p>
In the event the URI cannot be found, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is returned and
<em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em>&#160;:</span></p></td>
<td> a valid URI
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></p></td>
<td> the name of the application
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td>
<td> return location for a <a class="link" href="glib-Error-Reporting.html#GError"><span class="type">GError</span></a> or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the application <em class="parameter"><code>name</code></em> was found

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3257510"></a><h3>
<a name="g-bookmark-file-get-size"></a>g_bookmark_file_get_size ()</h3>
<a class="indexterm" name="id3257525"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gint">gint</a>                g_bookmark_file_get_size            (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark);</pre>
<p>
Gets the number of bookmarks inside <em class="parameter"><code>bookmark</code></em>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> the number of bookmarks

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3257607"></a><h3>
<a name="g-bookmark-file-get-uris"></a>g_bookmark_file_get_uris ()</h3>
<a class="indexterm" name="id3257623"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar">gchar</a>**             g_bookmark_file_get_uris            (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         <a class="link" href="glib-Basic-Types.html#gsize">gsize</a> *length);</pre>
<p>
Returns all URIs of the bookmarks in the bookmark file <em class="parameter"><code>bookmark</code></em>.
The array of returned URIs will be <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated, so <em class="parameter"><code>length</code></em> may
optionally be <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>length</code></em>&#160;:</span></p></td>
<td> return location for the number of returned URIs, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> a newly allocated <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated array of strings.
  Use <a class="link" href="glib-String-Utility-Functions.html#g-strfreev"><code class="function">g_strfreev()</code></a> to free it.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3257786"></a><h3>
<a name="g-bookmark-file-get-title"></a>g_bookmark_file_get_title ()</h3>
<a class="indexterm" name="id3257802"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar">gchar</a>*              g_bookmark_file_get_title           (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);</pre>
<p>
Returns the title of the bookmark for <em class="parameter"><code>uri</code></em>.
</p>
<p>
If <em class="parameter"><code>uri</code></em> is <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, the title of <em class="parameter"><code>bookmark</code></em> is returned.
</p>
<p>
In the event the URI cannot be found, <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned and
<em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em>&#160;:</span></p></td>
<td> a valid URI or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td>
<td> return location for a <a class="link" href="glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> a newly allocated string or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the specified
  URI cannot be found.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3258022"></a><h3>
<a name="g-bookmark-file-get-description"></a>g_bookmark_file_get_description ()</h3>
<a class="indexterm" name="id3258037"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar">gchar</a>*              g_bookmark_file_get_description     (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);</pre>
<p>
Retrieves the description of the bookmark for <em class="parameter"><code>uri</code></em>.
</p>
<p>
In the event the URI cannot be found, <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned and
<em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em>&#160;:</span></p></td>
<td> a valid URI
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td>
<td> return location for a <a class="link" href="glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> a newly allocated string or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the specified
  URI cannot be found.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3258221"></a><h3>
<a name="g-bookmark-file-get-mime-type"></a>g_bookmark_file_get_mime_type ()</h3>
<a class="indexterm" name="id3258237"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar">gchar</a>*              g_bookmark_file_get_mime_type       (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);</pre>
<p>
Retrieves the MIME type of the resource pointed by <em class="parameter"><code>uri</code></em>.
</p>
<p>
In the event the URI cannot be found, <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned and
<em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>.  In the
event that the MIME type cannot be found, <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned and
<em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-INVALID-VALUE:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_INVALID_VALUE</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em>&#160;:</span></p></td>
<td> a valid URI
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td>
<td> return location for a <a class="link" href="glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> a newly allocated string or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the specified
  URI cannot be found.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3258449"></a><h3>
<a name="g-bookmark-file-get-is-private"></a>g_bookmark_file_get_is_private ()</h3>
<a class="indexterm" name="id3258465"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            g_bookmark_file_get_is_private      (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);</pre>
<p>
Gets whether the private flag of the bookmark for <em class="parameter"><code>uri</code></em> is set.
</p>
<p>
In the event the URI cannot be found, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is returned and
<em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>.  In the
event that the private flag cannot be found, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is returned and
<em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-INVALID-VALUE:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_INVALID_VALUE</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em>&#160;:</span></p></td>
<td> a valid URI
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td>
<td> return location for a <a class="link" href="glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the private flag is set, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3258686"></a><h3>
<a name="g-bookmark-file-get-icon"></a>g_bookmark_file_get_icon ()</h3>
<a class="indexterm" name="id3258702"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            g_bookmark_file_get_icon            (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> **href,
                                                         <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> **mime_type,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);</pre>
<p>
Gets the icon of the bookmark for <em class="parameter"><code>uri</code></em>.
</p>
<p>
In the event the URI cannot be found, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is returned and
<em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em>&#160;:</span></p></td>
<td> a valid URI
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>href</code></em>&#160;:</span></p></td>
<td> return location for the icon's location or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em>&#160;:</span></p></td>
<td> return location for the icon's MIME type or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td>
<td> return location for a <a class="link" href="glib-Error-Reporting.html#GError"><span class="type">GError</span></a> or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the icon for the bookmark for the URI was found.
  You should free the returned strings.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3258950"></a><h3>
<a name="g-bookmark-file-get-added"></a>g_bookmark_file_get_added ()</h3>
<a class="indexterm" name="id3258967"></a><pre class="programlisting">time_t              g_bookmark_file_get_added           (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);</pre>
<p>
Gets the time the bookmark for <em class="parameter"><code>uri</code></em> was added to <em class="parameter"><code>bookmark</code></em>
</p>
<p>
In the event the URI cannot be found, -1 is returned and
<em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em>&#160;:</span></p></td>
<td> a valid URI
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td>
<td> return location for a <a class="link" href="glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> a timestamp

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3259135"></a><h3>
<a name="g-bookmark-file-get-modified"></a>g_bookmark_file_get_modified ()</h3>
<a class="indexterm" name="id3259151"></a><pre class="programlisting">time_t              g_bookmark_file_get_modified        (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);</pre>
<p>
Gets the time when the bookmark for <em class="parameter"><code>uri</code></em> was last modified.
</p>
<p>
In the event the URI cannot be found, -1 is returned and
<em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em>&#160;:</span></p></td>
<td> a valid URI
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td>
<td> return location for a <a class="link" href="glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> a timestamp

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3259314"></a><h3>
<a name="g-bookmark-file-get-visited"></a>g_bookmark_file_get_visited ()</h3>
<a class="indexterm" name="id3259330"></a><pre class="programlisting">time_t              g_bookmark_file_get_visited         (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);</pre>
<p>
Gets the time the bookmark for <em class="parameter"><code>uri</code></em> was last visited.
</p>
<p>
In the event the URI cannot be found, -1 is returned and
<em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em>&#160;:</span></p></td>
<td> a valid URI
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td>
<td> return location for a <a class="link" href="glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> a timestamp.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3259492"></a><h3>
<a name="g-bookmark-file-get-groups"></a>g_bookmark_file_get_groups ()</h3>
<a class="indexterm" name="id3259508"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar">gchar</a>**             g_bookmark_file_get_groups          (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         <a class="link" href="glib-Basic-Types.html#gsize">gsize</a> *length,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);</pre>
<p>
Retrieves the list of group names of the bookmark for <em class="parameter"><code>uri</code></em>.
</p>
<p>
In the event the URI cannot be found, <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned and
<em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>.
</p>
<p>
The returned array is <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> terminated, so <em class="parameter"><code>length</code></em> may optionally
be <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em>&#160;:</span></p></td>
<td> a valid URI
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>length</code></em>&#160;:</span></p></td>
<td> return location for the length of the returned string, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td>
<td> return location for a <a class="link" href="glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> a newly allocated <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated array of group names.
  Use <a class="link" href="glib-String-Utility-Functions.html#g-strfreev"><code class="function">g_strfreev()</code></a> to free it.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3259764"></a><h3>
<a name="g-bookmark-file-get-applications"></a>g_bookmark_file_get_applications ()</h3>
<a class="indexterm" name="id3259779"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gchar">gchar</a>**             g_bookmark_file_get_applications    (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         <a class="link" href="glib-Basic-Types.html#gsize">gsize</a> *length,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);</pre>
<p>
Retrieves the names of the applications that have registered the
bookmark for <em class="parameter"><code>uri</code></em>.
</p>
<p>
In the event the URI cannot be found, <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned and
<em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em>&#160;:</span></p></td>
<td> a valid URI
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>length</code></em>&#160;:</span></p></td>
<td> return location of the length of the returned list, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td>
<td> return location for a <a class="link" href="glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> a newly allocated <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>-terminated array of strings.
  Use <a class="link" href="glib-String-Utility-Functions.html#g-strfreev"><code class="function">g_strfreev()</code></a> to free it.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3260007"></a><h3>
<a name="g-bookmark-file-get-app-info"></a>g_bookmark_file_get_app_info ()</h3>
<a class="indexterm" name="id3260022"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            g_bookmark_file_get_app_info        (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *name,
                                                         <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> **exec,
                                                         <a class="link" href="glib-Basic-Types.html#guint">guint</a> *count,
                                                         time_t *stamp,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);</pre>
<p>
Gets the registration informations of <em class="parameter"><code>app_name</code></em> for the bookmark for
<em class="parameter"><code>uri</code></em>.  See <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-app-info"><code class="function">g_bookmark_file_set_app_info()</code></a> for more informations about
the returned data.
</p>
<p>
The string returned in <em class="parameter"><code>app_exec</code></em> must be freed.
</p>
<p>
In the event the URI cannot be found, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is returned and
<em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>.  In the
event that no application with name <em class="parameter"><code>app_name</code></em> has registered a bookmark
for <em class="parameter"><code>uri</code></em>,  <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is returned and error is set to
<a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-APP-NOT-REGISTERED:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED</span></a>. In the event that unquoting
the command line fails, an error of the <a class="link" href="glib-Shell-related-Utilities.html#G-SHELL-ERROR:CAPS"><span class="type">G_SHELL_ERROR</span></a> domain is
set and <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is returned.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em>&#160;:</span></p></td>
<td> a valid URI
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></p></td>
<td> an application's name
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>exec</code></em>&#160;:</span></p></td>
<td> location for the command line of the application, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>count</code></em>&#160;:</span></p></td>
<td> return location for the registration count, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>stamp</code></em>&#160;:</span></p></td>
<td> return location for the last registration time, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td>
<td> return location for a <a class="link" href="glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3260408"></a><h3>
<a name="g-bookmark-file-set-title"></a>g_bookmark_file_set_title ()</h3>
<a class="indexterm" name="id3260424"></a><pre class="programlisting">void                g_bookmark_file_set_title           (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *title);</pre>
<p>
Sets <em class="parameter"><code>title</code></em> as the title of the bookmark for <em class="parameter"><code>uri</code></em> inside the
bookmark file <em class="parameter"><code>bookmark</code></em>.
</p>
<p>
If <em class="parameter"><code>uri</code></em> is <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, the title of <em class="parameter"><code>bookmark</code></em> is set.
</p>
<p>
If a bookmark for <em class="parameter"><code>uri</code></em> cannot be found then it is created.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em>&#160;:</span></p></td>
<td> a valid URI or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>title</code></em>&#160;:</span></p></td>
<td> a UTF-8 encoded string
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3260596"></a><h3>
<a name="g-bookmark-file-set-description"></a>g_bookmark_file_set_description ()</h3>
<a class="indexterm" name="id3260612"></a><pre class="programlisting">void                g_bookmark_file_set_description     (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *description);</pre>
<p>
Sets <em class="parameter"><code>description</code></em> as the description of the bookmark for <em class="parameter"><code>uri</code></em>.
</p>
<p>
If <em class="parameter"><code>uri</code></em> is <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, the description of <em class="parameter"><code>bookmark</code></em> is set.
</p>
<p>
If a bookmark for <em class="parameter"><code>uri</code></em> cannot be found then it is created.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em>&#160;:</span></p></td>
<td> a valid URI or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>description</code></em>&#160;:</span></p></td>
<td> a string
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3260778"></a><h3>
<a name="g-bookmark-file-set-mime-type"></a>g_bookmark_file_set_mime_type ()</h3>
<a class="indexterm" name="id3260794"></a><pre class="programlisting">void                g_bookmark_file_set_mime_type       (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *mime_type);</pre>
<p>
Sets <em class="parameter"><code>mime_type</code></em> as the MIME type of the bookmark for <em class="parameter"><code>uri</code></em>.
</p>
<p>
If a bookmark for <em class="parameter"><code>uri</code></em> cannot be found then it is created.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em>&#160;:</span></p></td>
<td> a valid URI
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em>&#160;:</span></p></td>
<td> a MIME type
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3260925"></a><h3>
<a name="g-bookmark-file-set-is-private"></a>g_bookmark_file_set_is_private ()</h3>
<a class="indexterm" name="id3260941"></a><pre class="programlisting">void                g_bookmark_file_set_is_private      (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         <a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a> is_private);</pre>
<p>
Sets the private flag of the bookmark for <em class="parameter"><code>uri</code></em>.
</p>
<p>
If a bookmark for <em class="parameter"><code>uri</code></em> cannot be found then it is created.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em>&#160;:</span></p></td>
<td> a valid URI
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>is_private</code></em>&#160;:</span></p></td>
<td> <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the bookmark should be marked as private
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3261077"></a><h3>
<a name="g-bookmark-file-set-icon"></a>g_bookmark_file_set_icon ()</h3>
<a class="indexterm" name="id3261092"></a><pre class="programlisting">void                g_bookmark_file_set_icon            (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *href,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *mime_type);</pre>
<p>
Sets the icon for the bookmark for <em class="parameter"><code>uri</code></em>.  If <em class="parameter"><code>href</code></em> is <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, unsets
the currently set icon.
</p>
<p>
If no bookmark for <em class="parameter"><code>uri</code></em> is found it is created.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em>&#160;:</span></p></td>
<td> a valid URI
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>href</code></em>&#160;:</span></p></td>
<td> the URI of the icon for the bookmark, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mime_type</code></em>&#160;:</span></p></td>
<td> the MIME type of the icon for the bookmark
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3261266"></a><h3>
<a name="g-bookmark-file-set-added"></a>g_bookmark_file_set_added ()</h3>
<a class="indexterm" name="id3261282"></a><pre class="programlisting">void                g_bookmark_file_set_added           (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         time_t added);</pre>
<p>
Sets the time the bookmark for <em class="parameter"><code>uri</code></em> was added into <em class="parameter"><code>bookmark</code></em>.
</p>
<p>
If no bookmark for <em class="parameter"><code>uri</code></em> is found then it is created.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em>&#160;:</span></p></td>
<td> a valid URI
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>added</code></em>&#160;:</span></p></td>
<td> a timestamp or -1 to use the current time
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3261413"></a><h3>
<a name="g-bookmark-file-set-groups"></a>g_bookmark_file_set_groups ()</h3>
<a class="indexterm" name="id3261429"></a><pre class="programlisting">void                g_bookmark_file_set_groups          (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> **groups,
                                                         <a class="link" href="glib-Basic-Types.html#gsize">gsize</a> length);</pre>
<p>
Sets a list of group names for the item with URI <em class="parameter"><code>uri</code></em>.  Each previously
set group name list is removed.
</p>
<p>
If <em class="parameter"><code>uri</code></em> cannot be found then an item for it is created.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em>&#160;:</span></p></td>
<td> an item's URI
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>groups</code></em>&#160;:</span></p></td>
<td> an array of group names, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to remove all groups
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>length</code></em>&#160;:</span></p></td>
<td> number of group name values in <em class="parameter"><code>groups</code></em>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3261593"></a><h3>
<a name="g-bookmark-file-set-modified"></a>g_bookmark_file_set_modified ()</h3>
<a class="indexterm" name="id3261608"></a><pre class="programlisting">void                g_bookmark_file_set_modified        (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         time_t modified);</pre>
<p>
Sets the last time the bookmark for <em class="parameter"><code>uri</code></em> was last modified.
</p>
<p>
If no bookmark for <em class="parameter"><code>uri</code></em> is found then it is created.
</p>
<p>
The "modified" time should only be set when the bookmark's meta-data
was actually changed.  Every function of <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a> that
modifies a bookmark also changes the modification time, except for
<a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-set-visited"><code class="function">g_bookmark_file_set_visited()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em>&#160;:</span></p></td>
<td> a valid URI
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>modified</code></em>&#160;:</span></p></td>
<td> a timestamp or -1 to use the current time
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3261760"></a><h3>
<a name="g-bookmark-file-set-visited"></a>g_bookmark_file_set_visited ()</h3>
<a class="indexterm" name="id3261776"></a><pre class="programlisting">void                g_bookmark_file_set_visited         (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         time_t visited);</pre>
<p>
Sets the time the bookmark for <em class="parameter"><code>uri</code></em> was last visited.
</p>
<p>
If no bookmark for <em class="parameter"><code>uri</code></em> is found then it is created.
</p>
<p>
The "visited" time should only be set if the bookmark was launched, 
either using the command line retrieved by <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-app-info"><code class="function">g_bookmark_file_get_app_info()</code></a>
or by the default application for the bookmark's MIME type, retrieved
using <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-mime-type"><code class="function">g_bookmark_file_get_mime_type()</code></a>.  Changing the "visited" time
does not affect the "modified" time.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em>&#160;:</span></p></td>
<td> a valid URI
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>visited</code></em>&#160;:</span></p></td>
<td> a timestamp or -1 to use the current time
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3261931"></a><h3>
<a name="g-bookmark-file-set-app-info"></a>g_bookmark_file_set_app_info ()</h3>
<a class="indexterm" name="id3261946"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            g_bookmark_file_set_app_info        (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *name,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *exec,
                                                         <a class="link" href="glib-Basic-Types.html#gint">gint</a> count,
                                                         time_t stamp,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);</pre>
<p>
Sets the meta-data of application <em class="parameter"><code>name</code></em> inside the list of
applications that have registered a bookmark for <em class="parameter"><code>uri</code></em> inside
<em class="parameter"><code>bookmark</code></em>.
</p>
<p>
You should rarely use this function; use <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-add-application"><code class="function">g_bookmark_file_add_application()</code></a>
and <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-remove-application"><code class="function">g_bookmark_file_remove_application()</code></a> instead.
</p>
<p>
<em class="parameter"><code>name</code></em> can be any UTF-8 encoded string used to identify an
application.
<em class="parameter"><code>exec</code></em> can have one of these two modifiers: "<code class="literal">f</code>", which will
be expanded as the local file name retrieved from the bookmark's
URI; "<code class="literal">u</code>", which will be expanded as the bookmark's URI.
The expansion is done automatically when retrieving the stored
command line using the <a class="link" href="glib-Bookmark-file-parser.html#g-bookmark-file-get-app-info"><code class="function">g_bookmark_file_get_app_info()</code></a> function.
<em class="parameter"><code>count</code></em> is the number of times the application has registered the
bookmark; if is &lt; 0, the current registration count will be increased
by one, if is 0, the application with <em class="parameter"><code>name</code></em> will be removed from
the list of registered applications.
<em class="parameter"><code>stamp</code></em> is the Unix time of the last registration; if it is -1, the
current time will be used.
</p>
<p>
If you try to remove an application by setting its registration count to
zero, and no bookmark for <em class="parameter"><code>uri</code></em> is found, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is returned and
<em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>; similarly,
in the event that no application <em class="parameter"><code>name</code></em> has registered a bookmark
for <em class="parameter"><code>uri</code></em>,  <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is returned and error is set to
<a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-APP-NOT-REGISTERED:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED</span></a>.  Otherwise, if no bookmark
for <em class="parameter"><code>uri</code></em> is found, one is created.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em>&#160;:</span></p></td>
<td> a valid URI
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></p></td>
<td> an application's name
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>exec</code></em>&#160;:</span></p></td>
<td> an application's command line
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>count</code></em>&#160;:</span></p></td>
<td> the number of registrations done for this application
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>stamp</code></em>&#160;:</span></p></td>
<td> the time of the last registration for this application
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td>
<td> return location for a <a class="link" href="glib-Error-Reporting.html#GError"><span class="type">GError</span></a> or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the application's meta-data was successfully
  changed.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3262387"></a><h3>
<a name="g-bookmark-file-add-group"></a>g_bookmark_file_add_group ()</h3>
<a class="indexterm" name="id3262403"></a><pre class="programlisting">void                g_bookmark_file_add_group           (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *group);</pre>
<p>
Adds <em class="parameter"><code>group</code></em> to the list of groups to which the bookmark for <em class="parameter"><code>uri</code></em>
belongs to.
</p>
<p>
If no bookmark for <em class="parameter"><code>uri</code></em> is found then it is created.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em>&#160;:</span></p></td>
<td> a valid URI
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>group</code></em>&#160;:</span></p></td>
<td> the group name to be added
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3262534"></a><h3>
<a name="g-bookmark-file-add-application"></a>g_bookmark_file_add_application ()</h3>
<a class="indexterm" name="id3262550"></a><pre class="programlisting">void                g_bookmark_file_add_application     (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *name,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *exec);</pre>
<p>
Adds the application with <em class="parameter"><code>name</code></em> and <em class="parameter"><code>exec</code></em> to the list of
applications that have registered a bookmark for <em class="parameter"><code>uri</code></em> into
<em class="parameter"><code>bookmark</code></em>.
</p>
<p>
Every bookmark inside a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a> must have at least an
application registered.  Each application must provide a name, a
command line useful for launching the bookmark, the number of times
the bookmark has been registered by the application and the last
time the application registered this bookmark.
</p>
<p>
If <em class="parameter"><code>name</code></em> is <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, the name of the application will be the
same returned by <code class="function">g_get_application()</code>; if <em class="parameter"><code>exec</code></em> is <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, the
command line will be a composition of the program name as
returned by <a class="link" href="glib-Miscellaneous-Utility-Functions.html#g-get-prgname"><code class="function">g_get_prgname()</code></a> and the "<code class="literal">u</code>" modifier, which will be
expanded to the bookmark's URI.
</p>
<p>
This function will automatically take care of updating the
registrations count and timestamping in case an application
with the same <em class="parameter"><code>name</code></em> had already registered a bookmark for
<em class="parameter"><code>uri</code></em> inside <em class="parameter"><code>bookmark</code></em>.
</p>
<p>
If no bookmark for <em class="parameter"><code>uri</code></em> is found, one is created.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em>&#160;:</span></p></td>
<td> a valid URI
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></p></td>
<td> the name of the application registering the bookmark
  or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>exec</code></em>&#160;:</span></p></td>
<td> command line to be used to launch the bookmark or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3262848"></a><h3>
<a name="g-bookmark-file-remove-group"></a>g_bookmark_file_remove_group ()</h3>
<a class="indexterm" name="id3262863"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            g_bookmark_file_remove_group        (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *group,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);</pre>
<p>
Removes <em class="parameter"><code>group</code></em> from the list of groups to which the bookmark
for <em class="parameter"><code>uri</code></em> belongs to.
</p>
<p>
In the event the URI cannot be found, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is returned and
<em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>.
In the event no group was defined, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is returned and
<em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-INVALID-VALUE:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_INVALID_VALUE</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em>&#160;:</span></p></td>
<td> a valid URI
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>group</code></em>&#160;:</span></p></td>
<td> the group name to be removed
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td>
<td> return location for a <a class="link" href="glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>group</code></em> was successfully removed.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3263108"></a><h3>
<a name="g-bookmark-file-remove-application"></a>g_bookmark_file_remove_application ()</h3>
<a class="indexterm" name="id3263124"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            g_bookmark_file_remove_application  (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *name,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);</pre>
<p>
Removes application registered with <em class="parameter"><code>name</code></em> from the list of applications
that have registered a bookmark for <em class="parameter"><code>uri</code></em> inside <em class="parameter"><code>bookmark</code></em>.
</p>
<p>
In the event the URI cannot be found, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is returned and
<em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>.
In the event that no application with name <em class="parameter"><code>app_name</code></em> has registered
a bookmark for <em class="parameter"><code>uri</code></em>,  <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is returned and error is set to
<a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-APP-NOT-REGISTERED:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em>&#160;:</span></p></td>
<td> a valid URI
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></p></td>
<td> the name of the application
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td>
<td> return location for a <a class="link" href="glib-Error-Reporting.html#GError"><span class="type">GError</span></a> or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the application was successfully removed.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3263375"></a><h3>
<a name="g-bookmark-file-remove-item"></a>g_bookmark_file_remove_item ()</h3>
<a class="indexterm" name="id3263391"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            g_bookmark_file_remove_item         (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *uri,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);</pre>
<p>
Removes the bookmark for <em class="parameter"><code>uri</code></em> from the bookmark file <em class="parameter"><code>bookmark</code></em>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uri</code></em>&#160;:</span></p></td>
<td> a valid URI
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td>
<td> return location for a <a class="link" href="glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the bookmark was removed successfully.

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3263550"></a><h3>
<a name="g-bookmark-file-move-item"></a>g_bookmark_file_move_item ()</h3>
<a class="indexterm" name="id3263566"></a><pre class="programlisting"><a class="link" href="glib-Basic-Types.html#gboolean">gboolean</a>            g_bookmark_file_move_item           (<a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile">GBookmarkFile</a> *bookmark,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *old_uri,
                                                         const <a class="link" href="glib-Basic-Types.html#gchar">gchar</a> *new_uri,
                                                         <a class="link" href="glib-Error-Reporting.html#GError">GError</a> **error);</pre>
<p>
Changes the URI of a bookmark item from <em class="parameter"><code>old_uri</code></em> to <em class="parameter"><code>new_uri</code></em>.  Any
existing bookmark for <em class="parameter"><code>new_uri</code></em> will be overwritten.  If <em class="parameter"><code>new_uri</code></em> is
<a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, then the bookmark is removed.
</p>
<p>
In the event the URI cannot be found, <a class="link" href="glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> is returned and
<em class="parameter"><code>error</code></em> is set to <a class="link" href="glib-Bookmark-file-parser.html#G-BOOKMARK-FILE-ERROR-URI-NOT-FOUND:CAPS"><span class="type">G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bookmark</code></em>&#160;:</span></p></td>
<td> a <a class="link" href="glib-Bookmark-file-parser.html#GBookmarkFile"><span class="type">GBookmarkFile</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>old_uri</code></em>&#160;:</span></p></td>
<td> a valid URI
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>new_uri</code></em>&#160;:</span></p></td>
<td> a valid URI, or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em>&#160;:</span></p></td>
<td> return location for a <a class="link" href="glib-Error-Reporting.html#GError"><span class="type">GError</span></a> or <a class="link" href="glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
<td> <a class="link" href="glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the URI was successfully changed

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since  2.12
</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id3263812"></a><div class="refsect2" lang="en"><a name="id3263813"></a></div>
<hr>
<div class="refsect2" lang="en"><a name="id3263814"></a></div>
</div>
</div>
</body>
</html>
